export interface ResType<T = any> {
  success: boolean
  msg: string
  data: T
}

export namespace Login {
  export interface username {
    username: string
    password: string
  }

  export interface email {
    email: string
    password: string
  }
}

export namespace User {
  export interface userInfo {
    id: number
    nickname: string
    email: string
    level: number
    password: string
    pwd: string
    status: number
    time: Date
  }
}

export namespace Dept {
  export interface Params {
    deptName?: string
  }

  export interface DeptItem {
    _id: string
    deptName: string
    userName: string
    parentId: string
    createTime: string
    updateTime: string
    children: DeptItem[]
  }
}
